package com.systemdevelopment.mainproject.View;

import javafx.fxml.FXMLLoader;
import javafx.scene.layout.Pane;

import java.io.IOException;

public class PaneFactory {
    public static Pane getPane(String url) throws IOException {//获得页面实例
        FXMLLoader fxmlLoader = new FXMLLoader(PaneFactory.class.getResource(url));
        return fxmlLoader.load();
    }

}
